package com.zju.DoctorGo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@Data
@TableName("prescriptions")
public class Prescription {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("prescriptionId")
    private Long prescriptionId;
    @TableField("medicineId")
    private Long medicineId;
    private Integer quantity;

//    public Prescription(PrescriptionDTO prescriptionDTO) {
//        this.id = prescriptionDTO.getId();
//        this.prescriptionId = prescriptionDTO.getPrescriptionId();
//        this.medicineId = prescriptionDTO.getMedicineId();
//        this.quantity = prescriptionDTO.getQuantity();
//    }

//    public Long getPrescriptionId() {return prescriptionId;}
//    public Long getMedicineId() {return this.medicineId;}
}